package model;

/**
 * Holds data and and functionality for an Item
 * 
 * @author Daniel Bartholomew
 */
public class Item {
	
	private static int next_id_no = 1;
	
	private final String my_name;
	
	private final int my_id_no;
	
	/** The lowest allowed bid for this item */
	private final double my_min_price;
	
	private final String my_notes;
	
	public Item(final String name, final double min_price, final String notes) {
		this(name, min_price, notes, next_id_no);
	}
	
	protected Item(final String name, final double min_price, final String notes, final int id_no) {
		my_name = name;
		my_min_price = min_price;
		my_notes = notes;
		my_id_no = id_no;
		if (id_no >= next_id_no) {
			next_id_no = (id_no + 1);
		}
	}
	
	public String getName() {
		return my_name;
	}
	
	public int getID() {
		return my_id_no;
	}
	
	public double getMinPrice() {
		return my_min_price;
	}
	
	public String getNotes() {
		return my_notes;
	}

}
